/**
 * \class CBroadcast
 * \brief This is a file transfer class in a broadcast way.
 * \version 0.3.2
 *
 * \author Woo-Hyun Kim (woorung@nhncorp.com, woorung@gmail.com)
 * \author http://blog.naver.com/wisereign .
 *
 * \date 2008/6/18
 */
#ifndef CBroadcastH
#define CBroadcastH
//-----------------------------------------------------------------
#include <iostream>
#include <vector>
#include <map>

#include "common_task.h"

#include "service/CFileProxy.h"

#include "CNary.h"

using namespace std;
//-----------------------------------------------------------------
class CBroadcast {
private :
	string host;
	int port;

protected :

public :
	CBroadcast(char *host, int port); 
	virtual ~CBroadcast();

	int broadcast(char *file, char *repository_path);
	int broadcast(char *file);
};
//-----------------------------------------------------------------
#endif
